count = 0
ans = 100
while True:
    guess = input("")
    count += 1
    try:
        guess = int(guess)
        if guess > ans:
            print("larger than expected")
        elif guess < ans:
            print("less than expected")
        elif guess == ans:
            print(f"you have tried {count} times, you win")
            break
    except ValueError:
        print("input error")


